APPNAME=main
LIBPATH=`pwd`/../lib/

CFLAGS+=-I${LIBPATH}
LDFLAGS+=-L${LIBPATH}


CC=gcc

all:
	${CC} ${CFLAGS} -I ../../openlibs/install/include/ main.c -o ${APPNAME} -g ${LDFLAGS} -lmqtt_project -L ../../openlibs/install/lib/ -lmosquitto

clean:
	rm -rf ${APPNAME}
	rm -rf sock_client.log*

run:
	export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/home/dengleen/dengleen/project/mqtt_project2/lib && ./${APPNAME} -t 5 -d -o 1 
